﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;
using System.IO;

namespace Face_Recognition
{
    
    public class ImageIO
    {
        private string path = "C:\\Users\\stefan\\Downloads\\muct-e-jpg-v1.tar\\muct-e-jpg-v1\\jpg\\i022se-fn.jpg";
        private string folderPath;
        private string[] paths;

        private Bitmap bitmap;
        private List<Bitmap> bitmaps;

        public Bitmap Bitmap
        {
            get { return bitmap; }
            set { bitmap = value; }
        }

        public ImageIO()
        {
            bitmap = new Bitmap(path);
        }

        public void setImage(string _path)
        {
            path = _path;

            bitmap = new Bitmap(path);
        }

        public void setFolder(string _folderPath)
        {
            folderPath = _folderPath;

            paths = Directory.GetFiles(_folderPath);

            bitmaps = new List<Bitmap>();

            foreach (string s in paths)
            {
                bitmaps.Add(new Bitmap(s));
            }
        }

    }
}
